FROM centos:7

# 配置阿里云yum源、安装基础软件
RUN yum -y install wget && \
    mkdir /tmp/yum_repos_backup && \
    mv /etc/yum.repos.d/* /tmp/yum_repos_backup/ && \
    wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo && \
    wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo && \
    yum -y install gcc gcc-c++ make net-tools iproute vim  && \
    yum clean all

CMD ["/bin/bash"]
